﻿using System;
using System.Diagnostics;
using System.Globalization;
using System.Runtime.InteropServices;
using System.ComponentModel.Design;
using Microsoft.Win32;
using Microsoft.VisualStudio.Shell.Interop;
using Microsoft.VisualStudio.OLE.Interop;
using Microsoft.VisualStudio.Shell;

namespace Agile_Planner_Platform
{
    [ProvideProjectFactory(typeof(Agile_Planner_Platform.AgilePlanner.AgilePlannerProjectFactory), 
        "Agile Planner Project", "Agile Planner Project Files (*.approj);*.approj", "approj", "approj",
        null, //@"\\", 
        LanguageVsTemplate = "AgilePlannerProject", NewProjectRequireNewFolderVsTemplate = true)]
    [InstalledProductRegistration(false, "#16682", "#18397", "1.0", IconResourceID = 14967, LanguageIndependentName = "Agile Planner Platform")]
    [ProvideLoadKey("Standard", "1.0", "AgilePlanner", "Yiyi Sun", 1)]
    [PackageRegistration(UseManagedResourcesOnly = true)]
    [DefaultRegistryRoot("Software\\Microsoft\\VisualStudio\\9.0")]
    [ProvideMenuResource(1000, 1)]
    [Guid(VsPackageConstants.guidVsPackagePkgString)]
    public sealed class VsPackage : Microsoft.VisualStudio.Package.ProjectPackage
    {
        public VsPackage()
        {
        }

        protected override void Initialize()
        {
            base.Initialize();
            this.RegisterProjectFactory(new Agile_Planner_Platform.AgilePlanner.AgilePlannerProjectFactory(this));
        }
    }
}